package com.liam.lotterysystem.controller.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author: LiamLMK
 * @CreateTime: 2024-10-16
 * @Description:
 * @Version: 1.0
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "用户登录请求体，包含用户手机号或邮箱、密码和身份信息")
public class UserPasswordLoginParam extends UserLoginParam {
    /**
     * 手机或邮箱
     */
    @NotBlank(message = "手机号或邮箱不能为空")
    @Schema(description = "手机号或邮箱")
    private String loginName;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @Schema(description = "用户密码")
    private String password;

}
